package com.itheima.mapper;

import com.itheima.entity.Banner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BannerMapper {
    List<Banner> findList(String title);

    @Select("select *from tb_banner where id = #{id}")
    Banner findById(Integer id);

    boolean remove(List<String> list);

    void add(Banner banner);
}
